Raspbian automatic forward porter [Sat, 28 Mar 2026 04:45:34 +0000 (04:45 +0000)]
Merge version 1:0.1.122-1+rpi1 and 1:0.1.124-1 to produce 1:0.1.124-1+rpi1
Jeremy Bícha [Sun, 15 Mar 2026 12:59:06 +0000 (08:59 -0400)]
Merge babl (1:0.1.124-1) import into refs/heads/workingbranch
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Jeremy Bícha [Sun, 15 Mar 2026 12:59:06 +0000 (08:59 -0400)]
babl (1:0.1.124-1) unstable; urgency=medium
* New upstream release
[dgit import unpatched babl 1:0.1.124-1]
Jeremy Bícha [Sun, 15 Mar 2026 12:59:06 +0000 (08:59 -0400)]
Import babl_0.1.124.orig.tar.xz
[dgit import orig babl_0.1.124.orig.tar.xz]
Jeremy Bícha [Sun, 15 Mar 2026 12:59:06 +0000 (08:59 -0400)]
Import babl_0.1.124-1.debian.tar.xz
[dgit import tarball babl 1:0.1.124-1 babl_0.1.124-1.debian.tar.xz]
Raspbian automatic forward porter [Tue, 10 Feb 2026 01:38:40 +0000 (01:38 +0000)]
Merge version 1:0.1.120-1+rpi1 and 1:0.1.122-1 to produce 1:0.1.122-1+rpi1
Jeremy Bícha [Sat, 31 Jan 2026 21:47:27 +0000 (16:47 -0500)]
Merge babl (1:0.1.122-1) import into refs/heads/workingbranch
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Jeremy Bícha [Sat, 31 Jan 2026 21:47:27 +0000 (16:47 -0500)]
babl (1:0.1.122-1) unstable; urgency=medium
* New upstream release
[dgit import unpatched babl 1:0.1.122-1]
Jeremy Bícha [Sat, 31 Jan 2026 21:47:27 +0000 (16:47 -0500)]
Import babl_0.1.122.orig.tar.xz
[dgit import orig babl_0.1.122.orig.tar.xz]
Jeremy Bícha [Sat, 31 Jan 2026 21:47:27 +0000 (16:47 -0500)]
Import babl_0.1.122-1.debian.tar.xz
[dgit import tarball babl 1:0.1.122-1 babl_0.1.122-1.debian.tar.xz]
Raspbian forward porter [Fri, 30 Jan 2026 17:37:51 +0000 (17:37 +0000)]
Merge babl (1:0.1.120-1+rpi1) import into refs/heads/workingbranch
Peter Michael Green [Fri, 30 Jan 2026 17:37:51 +0000 (17:37 +0000)]
Disable neon support
it seems to assume armv8 neon which not all systems have.
Gbp-Pq: Name disable-neon.patch
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Raspbian forward porter [Fri, 30 Jan 2026 17:37:51 +0000 (17:37 +0000)]
babl (1:0.1.120-1+rpi1) forky-staging; urgency=medium
[changes brought forward from 1:0.1.92-1+rpi1 by Peter Michael Green <plugwash@raspbian.org> at Sat, 27 Aug 2022 09:54:36 +0000]
* Disable neon support, it seems to assume armv8 neon which not
all systems have.
[dgit import unpatched babl 1:0.1.120-1+rpi1]
Raspbian forward porter [Fri, 30 Jan 2026 17:37:51 +0000 (17:37 +0000)]
Import babl_0.1.120-1+rpi1.debian.tar.xz
[dgit import tarball babl 1:0.1.120-1+rpi1 babl_0.1.120-1+rpi1.debian.tar.xz]
Jeremy Bícha [Wed, 21 Jan 2026 18:08:28 +0000 (13:08 -0500)]
Merge babl (1:0.1.120-1) import into refs/heads/workingbranch
Jeremy Bícha [Wed, 21 Jan 2026 18:08:28 +0000 (13:08 -0500)]
Import babl_0.1.120.orig.tar.xz
[dgit import orig babl_0.1.120.orig.tar.xz]
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Jeremy Bícha [Wed, 21 Jan 2026 18:08:28 +0000 (13:08 -0500)]
babl (1:0.1.120-1) unstable; urgency=medium
* New upstream release
* Remove build fix patch: applied in new release
[dgit import unpatched babl 1:0.1.120-1]
Jeremy Bícha [Wed, 21 Jan 2026 18:08:28 +0000 (13:08 -0500)]
Import babl_0.1.120-1.debian.tar.xz
[dgit import tarball babl 1:0.1.120-1 babl_0.1.120-1.debian.tar.xz]
Jeremy Bícha [Thu, 8 Jan 2026 14:45:44 +0000 (09:45 -0500)]
Merge babl (1:0.1.118-2) import into refs/heads/workingbranch
Bruno Lopes [Thu, 11 Dec 2025 13:48:39 +0000 (10:48 -0300)]
meson: Check for repository with python (not git executable)
Closes: #114
As per line 415 of the Meson file, git is not a mandatory dep.
(cherry picked from commit
4efc8b827e008417c4995a93ae3310697318cfab)
Origin: upstream, after 0.1.118
Gbp-Pq: Name meson-Check-for-repository-with-python-not-git-executable.patch
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Jeremy Bícha [Thu, 8 Jan 2026 14:45:44 +0000 (09:45 -0500)]
babl (1:0.1.118-2) unstable; urgency=medium
* Move Maintainer from Debian GNOME to Debian GNOME Extras
* Support nodoc build profile
* Bump Standards Version to 4.7.3
[dgit import unpatched babl 1:0.1.118-2]
Jeremy Bícha [Thu, 8 Jan 2026 14:45:44 +0000 (09:45 -0500)]
Import babl_0.1.118-2.debian.tar.xz
[dgit import tarball babl 1:0.1.118-2 babl_0.1.118-2.debian.tar.xz]
Jeremy Bícha [Sun, 14 Dec 2025 02:02:40 +0000 (21:02 -0500)]
Merge babl (1:0.1.118-1) import into refs/heads/workingbranch
Jeremy Bícha [Sun, 14 Dec 2025 02:02:40 +0000 (21:02 -0500)]
Import babl_0.1.118.orig.tar.xz
[dgit import orig babl_0.1.118.orig.tar.xz]
Bruno Lopes [Thu, 11 Dec 2025 13:48:39 +0000 (10:48 -0300)]
meson: Check for repository with python (not git executable)
Closes: #114
As per line 415 of the Meson file, git is not a mandatory dep.
(cherry picked from commit
4efc8b827e008417c4995a93ae3310697318cfab)
Origin: upstream, after 0.1.118
Gbp-Pq: Name meson-Check-for-repository-with-python-not-git-executable.patch
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Jeremy Bícha [Sun, 14 Dec 2025 02:02:40 +0000 (21:02 -0500)]
babl (1:0.1.118-1) unstable; urgency=medium
* New upstream release
* Cherry-pick patch to fix build
* Remove unnecessary Priority: optional field
[dgit import unpatched babl 1:0.1.118-1]
Jeremy Bícha [Sun, 14 Dec 2025 02:02:40 +0000 (21:02 -0500)]
Import babl_0.1.118-1.debian.tar.xz
[dgit import tarball babl 1:0.1.118-1 babl_0.1.118-1.debian.tar.xz]
Jeremy Bícha [Thu, 29 May 2025 12:23:23 +0000 (08:23 -0400)]
Merge babl (1:0.1.114-2) import into refs/heads/workingbranch
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Jeremy Bícha [Thu, 29 May 2025 12:23:23 +0000 (08:23 -0400)]
babl (1:0.1.114-2) unstable; urgency=medium
* Release to unstable
[dgit import unpatched babl 1:0.1.114-2]
Jeremy Bícha [Thu, 29 May 2025 12:23:23 +0000 (08:23 -0400)]
Import babl_0.1.114-2.debian.tar.xz
[dgit import tarball babl 1:0.1.114-2 babl_0.1.114-2.debian.tar.xz]
Jeremy Bícha [Tue, 27 May 2025 13:17:22 +0000 (09:17 -0400)]
Import babl_0.1.114.orig.tar.xz
[dgit import orig babl_0.1.114.orig.tar.xz]
Jeremy Bícha [Sun, 16 Mar 2025 18:39:04 +0000 (14:39 -0400)]
Merge babl (1:0.1.112-1) import into refs/heads/workingbranch
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Jeremy Bícha [Sun, 16 Mar 2025 18:39:04 +0000 (14:39 -0400)]
babl (1:0.1.112-1) unstable; urgency=medium
* New upstream release
* Update libbabl-doc.doc-base
[dgit import unpatched babl 1:0.1.112-1]
Jeremy Bícha [Sun, 16 Mar 2025 18:39:04 +0000 (14:39 -0400)]
Import babl_0.1.112.orig.tar.xz
[dgit import orig babl_0.1.112.orig.tar.xz]
Jeremy Bícha [Sun, 16 Mar 2025 18:39:04 +0000 (14:39 -0400)]
Import babl_0.1.112-1.debian.tar.xz
[dgit import tarball babl 1:0.1.112-1 babl_0.1.112-1.debian.tar.xz]
Jordi Mallach [Mon, 4 Nov 2024 23:09:31 +0000 (00:09 +0100)]
Merge babl (1:0.1.110-1) import into refs/heads/workingbranch
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Jordi Mallach [Mon, 4 Nov 2024 23:09:31 +0000 (00:09 +0100)]
babl (1:0.1.110-1) unstable; urgency=medium
* New upstream release.
* Update Standards-Version to 4.7.0, with no changes needed.
[dgit import unpatched babl 1:0.1.110-1]
Jordi Mallach [Mon, 4 Nov 2024 23:09:31 +0000 (00:09 +0100)]
Import babl_0.1.110.orig.tar.xz
[dgit import orig babl_0.1.110.orig.tar.xz]
Jordi Mallach [Mon, 4 Nov 2024 23:09:31 +0000 (00:09 +0100)]
Import babl_0.1.110-1.debian.tar.xz
[dgit import tarball babl 1:0.1.110-1 babl_0.1.110-1.debian.tar.xz]
Jeremy Bícha [Tue, 13 Feb 2024 21:45:02 +0000 (16:45 -0500)]
Merge babl (1:0.1.108-1) import into refs/heads/workingbranch
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Jeremy Bícha [Tue, 13 Feb 2024 21:45:02 +0000 (16:45 -0500)]
babl (1:0.1.108-1) unstable; urgency=medium
* New upstream release
* debian/libbabl-0.1-0.symbols: Add new symbol
* Add Build-Depends: gi-docgen
* Stop using dh-sequence-gnome
[dgit import unpatched babl 1:0.1.108-1]
Jeremy Bícha [Tue, 13 Feb 2024 21:45:02 +0000 (16:45 -0500)]
Import babl_0.1.108.orig.tar.xz
[dgit import orig babl_0.1.108.orig.tar.xz]
Jeremy Bícha [Tue, 13 Feb 2024 21:45:02 +0000 (16:45 -0500)]
Import babl_0.1.108-1.debian.tar.xz
[dgit import tarball babl 1:0.1.108-1 babl_0.1.108-1.debian.tar.xz]
Simon McVittie [Wed, 15 Nov 2023 12:09:11 +0000 (12:09 +0000)]
Declare fast forward from 1:0.1.106-2
[dgit --quilt=unapplied --overwrite]
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Simon McVittie [Wed, 15 Nov 2023 12:10:03 +0000 (12:10 +0000)]
Release to unstable
Simon McVittie [Wed, 15 Nov 2023 12:08:56 +0000 (12:08 +0000)]
d/control: Add ${gir:Depends}, ${gir:Provides} to -dev package
Helps: #
1030223
Simon McVittie [Wed, 15 Nov 2023 12:07:42 +0000 (12:07 +0000)]
d/control: Stop generating from d/control.in
Simon McVittie [Wed, 15 Nov 2023 12:07:05 +0000 (12:07 +0000)]
d/control: Regenerate
Spell Jeremy Bícha's name with the correct Unicode.
Amin Bandali [Mon, 4 Sep 2023 13:50:12 +0000 (09:50 -0400)]
Change debian-branch from debian/master to debian/latest
Jeremy Bicha [Mon, 12 Jun 2023 17:08:09 +0000 (13:08 -0400)]
releasing package babl version 1:0.1.106-2
Jeremy Bícha [Mon, 12 Jun 2023 17:06:10 +0000 (18:06 +0100)]
Record babl (1:0.1.106-2) in archive suite sid
Jeremy Bicha [Sun, 27 Oct 2019 16:53:09 +0000 (12:53 -0400)]
tests: increase timeout to 120 seconds
meson's default test timeout is 30 seconds which is a bit too slow
for Debian's armel build machine.
https://mesonbuild.com/Reference-manual.html#test
https://buildd.debian.org/status/logs.php?pkg=babl&arch=armel
Gbp-Pq: Name tests-increase-timeout.patch
Jeremy Bícha [Mon, 12 Jun 2023 17:06:10 +0000 (18:06 +0100)]
babl (1:0.1.106-2) unstable; urgency=medium
* Release to unstable
[dgit import unpatched babl 1:0.1.106-2]
Jeremy Bícha [Mon, 12 Jun 2023 17:06:10 +0000 (18:06 +0100)]
Import babl_0.1.106-2.debian.tar.xz
[dgit import tarball babl 1:0.1.106-2 babl_0.1.106-2.debian.tar.xz]
Jeremy Bicha [Wed, 24 May 2023 15:30:31 +0000 (11:30 -0400)]
releasing package babl version 1:0.1.106-1
Jeremy Bícha [Wed, 24 May 2023 15:29:31 +0000 (16:29 +0100)]
Import babl_0.1.106.orig.tar.xz
[dgit import orig babl_0.1.106.orig.tar.xz]
Jeremy Bicha [Wed, 24 May 2023 15:27:38 +0000 (11:27 -0400)]
debian/control.in: Set Rules-Requires-Root: no
Jeremy Bicha [Wed, 24 May 2023 15:26:57 +0000 (11:26 -0400)]
Update standards version to 4.6.2, no changes needed.
Changes-By: lintian-brush
Fixes: lintian: out-of-date-standards-version
See-also: https://lintian.debian.org/tags/out-of-date-standards-version.html
Jeremy Bicha [Wed, 24 May 2023 15:26:57 +0000 (11:26 -0400)]
Set upstream metadata fields: Bug-Database, Bug-Submit.
Changes-By: lintian-brush
Jeremy Bicha [Wed, 24 May 2023 15:26:40 +0000 (11:26 -0400)]
Update lintian override info format in d/libbabl-0.1-0.lintian-overrides on line 2, 4.
Changes-By: lintian-brush
Fixes: lintian: mismatched-override
See-also: https://lintian.debian.org/tags/mismatched-override.html
Jeremy Bicha [Wed, 24 May 2023 15:26:00 +0000 (11:26 -0400)]
autopkgtest: Update for renamed pkgconfig file: babl-0.1 instead of babl
Jeremy Bicha [Wed, 24 May 2023 15:20:10 +0000 (11:20 -0400)]
New upstream release
Jeremy Bicha [Wed, 24 May 2023 15:20:10 +0000 (11:20 -0400)]
Update upstream source from tag 'upstream/0.1.106'
Update to upstream version '0.1.106'
with Debian dir
562092e7b513326aa8d6d85c1ed9885e38cc82de
Jeremy Bicha [Wed, 24 May 2023 15:20:09 +0000 (11:20 -0400)]
New upstream version 0.1.106
Øyvind Kolås [Fri, 5 May 2023 12:37:51 +0000 (14:37 +0200)]
release 0.1.106
Øyvind Kolås [Tue, 2 May 2023 20:55:55 +0000 (22:55 +0200)]
LUT: speed up 3bpp->4bpp LUT
Keep alpha (0xff) as computed rather than stripping and reapplying.
Øyvind Kolås [Tue, 2 May 2023 20:49:58 +0000 (22:49 +0200)]
LUT: avoid zeroing alpha in 1bpp to 4bpp LUT
Fixing issue #92.
Øyvind Kolås [Sat, 22 Apr 2023 19:27:13 +0000 (21:27 +0200)]
spaces: built-in RGB to XYZ matrices for default spaces
Babl uses matrices which have been bit-optimized - which is a time consuming
task done at every startup. As reported in now fixed issue #67.
Øyvind Kolås [Sat, 22 Apr 2023 13:29:33 +0000 (15:29 +0200)]
LUT: disable when running on big-endian systems
We are crashing due to endian assumptions - we now only try to do the LUT
optimizations on little endian - no functionality is lost on big-endian
though conversion might be a tad slower. Hopefully fixing issue #91
Øyvind Kolås [Thu, 20 Apr 2023 22:29:07 +0000 (00:29 +0200)]
post release version bump
Øyvind Kolås [Thu, 20 Apr 2023 22:14:25 +0000 (00:14 +0200)]
release 0.1.104
Øyvind Kolås [Thu, 20 Apr 2023 22:13:45 +0000 (00:13 +0200)]
NEWS: update
Øyvind Kolås [Thu, 20 Apr 2023 21:49:19 +0000 (23:49 +0200)]
meson: bump minimum meson version to 0.55.0
As per issue #87 this is the minimum we can build with - and 0.56.x is
available in debian stable which we is used as a bar for inclusion.
Øyvind Kolås [Thu, 20 Apr 2023 21:04:09 +0000 (23:04 +0200)]
babl: make space remodelling array dynamic
Thus fixing issue #89
We protect this behind a mutex, initialization of color managed code from
multiple threads have been known to trigger babl races in GEGL/GIMP code.
Øyvind Kolås [Thu, 20 Apr 2023 20:08:15 +0000 (22:08 +0200)]
babl: make naming more defensive against overflow
Not neccesary while the static strings are 512 bytes, in regular
use we might however want to reduce this to 256bytes.
babl-format: make more more defensive
Øyvind Kolås [Thu, 23 Mar 2023 12:59:49 +0000 (13:59 +0100)]
LUT: make LUTs default to on
The BABL_LUT environment variable still controls whether it is enabled, to
turn off the LUT usage set BABL_LUT=0.
Øyvind Kolås [Thu, 23 Mar 2023 12:57:10 +0000 (13:57 +0100)]
LUT: handle with 4bpp associated aplha to 4bpp straight alpha conversions
Øyvind Kolås [Thu, 23 Mar 2023 10:18:58 +0000 (11:18 +0100)]
LUT: (temporarily) opt out of conversions from R'aG'a'B'aA u8 formats
Øyvind Kolås [Thu, 23 Mar 2023 09:34:46 +0000 (10:34 +0100)]
LUT: initialize LUTs from 4bpp with full alpha
Use alpha=255 in seeding of premultiplied - this might not be enough
we might also have to disassociate and reassociate alpha during conversion.
Øyvind Kolås [Sat, 25 Feb 2023 19:03:40 +0000 (20:03 +0100)]
build: post release version bump
Øyvind Kolås [Sat, 25 Feb 2023 19:01:55 +0000 (20:01 +0100)]
build: release 0.1.102
Øyvind Kolås [Sat, 25 Feb 2023 19:01:42 +0000 (20:01 +0100)]
NEWS: update
Øyvind Kolås [Sat, 25 Feb 2023 18:46:35 +0000 (19:46 +0100)]
LUT: do not use LUTs by default
The code marking LUTs as available for fishes is now protected behind an
environment variable BABL_LUT if it is set, the LUT code is re-enabled.
Øyvind Kolås [Mon, 20 Feb 2023 17:07:14 +0000 (18:07 +0100)]
meson: post release version bump
Øyvind Kolås [Mon, 20 Feb 2023 16:54:32 +0000 (17:54 +0100)]
release 0.1.100
Øyvind Kolås [Mon, 20 Feb 2023 16:54:25 +0000 (17:54 +0100)]
NEWS: update
Jehan [Fri, 17 Feb 2023 22:27:32 +0000 (23:27 +0100)]
babl: limit LUT creation for 4→8 and 4→16 bpp further.
Looking at LUT conversion code, we are clearly only supporting
converting from "u8" (to "u16" or "float" respectively).
Conversions such as "YA half" to "R'G'B'A float" for instance would be
completely broken (it was trying to use only one byte of the "YA half",
assumed it was "u8" and transform it to "float"). This is why the sample
image in #85 was appearing on display as more transparent than it should
when converted to 16-bit floating point grayscale image.
Jehan [Fri, 17 Feb 2023 21:45:11 +0000 (22:45 +0100)]
babl: make LUT from 2bpp to 4bpp totally generic.
The deleting of the first byte when creating the LUT, then copying the
first byte from source to destination, worked for cases such as "YA u8" to
"RGBA u8" but it would not work for say:
* "Y half" to anything: in such a case, deleting the first byte in LUT's
content, when creating it, we are basically deleting source's color
information!
* "YA u8" to "Y float": in such a case, when copying the first byte, at
conversion time, we are destroying the result color (which didn't need
any copying of alpha channel as there is no alpha channel in the
result).
* And so on.
In such cases, it's just better to include everything in the LUT, in a
totally model-agnostic way. In some cases, the alpha channel will be
stored in the LUT, in others, not. But it's not really a problem. It
doesn't even make the LUT bigger; if anything, it makes the LUT creation
and the conversion calculus simpler, hence faster.
Øyvind Kolås [Wed, 15 Feb 2023 16:21:56 +0000 (17:21 +0100)]
babl: LUT, only exclude associated alpha when copied